<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 

<script language="javascript" src="js/LodopFuncs.js"></script>

	
	<!-- <script src="./print_files/PrintWaybill.js"></script> 
	 <script src="./print_files/Jquery.common.js"></script> 
	
	<script src="./print_files/Jquery.ajaxRequest.js"></script>  -->
	
	
</head>
	<body id="warp">
		

</body>
<script type="text/javascript">
	
			            
			
	var oid=$(this).data("oid");
	var type=$(this).data("type");
	var eidturl=API_MIANDAN+"?oid=983&type=2";
	var that=$(this);	
	if(type==1){
		var text="<b>待收货</b><br>百世快递包裹<br>";
	}else{
		var text="<b>待收货</b><br>邮政快递包裹<br>";
	}
	$.getJSON(eidturl,function(data){
	    if(!checkStatus(data)) return;//判断登录

	    if(data.datas==''){
	        layer.msg("数据加载错误", {icon:2,time:1000});
	    }else{
	    	LODOP=getLodop();         
   			LODOP.PRINT_INIT("");
	        LODOP.ADD_PRINT_HTM(10,10,"100%","100%",data.datas.PrintTemplate);
	        
	        LODOP.PREVIEW();
	        // LODOP.PRINT(); 		

	    }
	    
	})
</script>
	</html>